package com.he.annotation;

import com.he.validator.CommentTypeValidator;
import com.he.validator.LinkTypeValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * @author He
 * @version 1.0
 * @Date 2023/10/22 8:20
 * @Desc
 */
@Documented
@Constraint(validatedBy = {LinkTypeValidator.class})
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface LinkType {

    String message() default "{javax.validation.constraints.NotBlank.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    /**
     * @return 评论类型
     */
    int[] values() default {};

}
